package com.cn.ccp.webservice.impl;

import com.cn.ccp.bean.SelectedCourse;

/**
 * 在线课程对象
 * @author renyongcheng
 *
 */
public class OnlineCourseObj {

	private int  id;//在线学习课程任务id
	private int	courseId;//课程id
	private String	courseName;//课程名称
	private String	image;//课程图片
	private String level;//课程星级
	private int highQuality;//高品质课程标志，1--是，0--不是
	private String	 teacherName;//发布课程的老师名称
	private String	createTime;//课程创建时间
	private int	 marks;//评论数量 
	private double progress;//学习进度数，百分百比数据，如60%返回的数据是60；
	
	OnlineCourseObj(SelectedCourse obj){
		id = obj.getId();
		courseId  = obj.getCourseId();
		courseName = obj.getCourserName();
		image = obj.getImage();
		level = obj.getStarLevel();
//		highQuality = obj.get
		teacherName = obj.getTeacherName();
//		createTime = obj.
		marks = obj.getMarks();
		progress = obj.getFinishRate();
	}
	
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getCourseId() {
		return courseId;
	}
	public void setCourseId(int courseId) {
		this.courseId = courseId;
	}
	public String getCourseName() {
		return courseName;
	}
	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	public String getLevel() {
		return level;
	}
	public void setLevel(String level) {
		this.level = level;
	}
	public int getHighQuality() {
		return highQuality;
	}
	public void setHighQuality(int highQuality) {
		this.highQuality = highQuality;
	}
	public String getTeacherName() {
		return teacherName;
	}
	public void setTeacherName(String teacherName) {
		this.teacherName = teacherName;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public int getMarks() {
		return marks;
	}
	public void setMarks(int marks) {
		this.marks = marks;
	}
	public double getProgress() {
		return progress;
	}
	public void setProgress(double progress) {
		this.progress = progress;
	}
	
	
}
